package com.spring.springbootblog.service;

import com.spring.springbootblog.common.pojo.request.AddBlogParam;
import com.spring.springbootblog.common.pojo.request.UpBlogParam;
import com.spring.springbootblog.common.pojo.response.BlogDetailResponse;
import com.spring.springbootblog.common.pojo.response.BlogInfoResponse;
import jakarta.validation.constraints.NotNull;

import java.util.List;

public interface BlogService {

    List<BlogInfoResponse> getList();

    BlogDetailResponse getBlogDetail(Integer blogId);

    Boolean addBlog(AddBlogParam param);

    Boolean updateBlog(UpBlogParam param);

    Boolean deleteBlog(@NotNull Integer blogId);
}
